<script setup lang="ts">
// 团队成员数据
const teamMembers = [
  {
    name: '张明',
    position: '首席执行官',
    description: '10年以上行业经验，带领团队不断创新',
    avatar: 'https://images.unsplash.com/photo-1568602471122-7832951cc4c5?auto=format&fit=crop&q=80'
  },
  {
    name: '李华',
    position: '技术总监',
    description: '全栈开发专家，负责技术架构和团队管理',
    avatar: 'https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?auto=format&fit=crop&q=80'
  },
  {
    name: '王芳',
    position: '产品经理',
    description: '专注用户体验，打造用户友好的产品',
    avatar: 'https://images.unsplash.com/photo-1494790108377-be9c29b29330?auto=format&fit=crop&q=80'
  },
  {
    name: '刘强',
    position: '设计师',
    description: '创意设计专家，注重细节和视觉体验',
    avatar: 'https://images.unsplash.com/photo-1500648767791-00dcc994a43e?auto=format&fit=crop&q=80'
  }
]

// 公司历程数据
const timelineEvents = [
  {
    year: '2018',
    title: '公司成立',
    description: '我们的团队正式组建，开始为客户提供专业服务'
  },
  {
    year: '2019',
    title: '产品发布',
    description: '推出首款核心产品，获得市场良好反响'
  },
  {
    year: '2020',
    title: '业务扩张',
    description: '扩展服务范围，增加多个产品线'
  },
  {
    year: '2021',
    title: '技术升级',
    description: '全面升级技术架构，提升系统性能和稳定性'
  },
  {
    year: '2022',
    title: '市场突破',
    description: '客户数量突破500家，覆盖多个行业'
  },
  {
    year: '2023',
    title: '持续创新',
    description: '推出多项创新功能，保持市场领先地位'
  }
]

// 我们的优势
const advantages = [
  {
    icon: '🎯',
    title: '专业团队',
    description: '拥有一支经验丰富、技术精湛的专业团队'
  },
  {
    icon: '📊',
    title: '数据驱动',
    description: '基于数据分析，为客户提供精准的解决方案'
  },
  {
    icon: '⚡',
    title: '高效执行',
    description: '快速响应客户需求，确保项目按时交付'
  },
  {
    icon: '💡',
    title: '持续创新',
    description: '不断探索新技术，提供更优质的服务'
  }
]
</script>

<template>
  <div class="about-page">
    <!-- 页面标题 -->
    <section class="page-header">
      <h1>关于我们</h1>
      <p>了解我们的故事、团队和价值观</p>
    </section>

    <!-- 公司简介 -->
    <section class="company-intro">
      <div class="card intro-card">
        <div class="intro-content">
          <h2>公司愿景</h2>
          <p>我们致力于成为行业领先的解决方案提供商，通过持续创新和优质服务，帮助客户实现业务增长和数字化转型。我们相信技术的力量可以改变世界，让人们的工作和生活更加便捷高效。</p>
          <p>自2018年成立以来，我们始终坚持以客户为中心的服务理念，不断提升产品质量和服务水平。我们的团队由一群充满激情和创造力的专业人士组成，他们在各自的领域拥有丰富的经验和专业知识。</p>
        </div>
        <div class="intro-image">
          <img src="https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&q=80" alt="公司愿景">
        </div>
      </div>
    </section>

    <!-- 公司优势 -->
    <section class="advantages-section">
      <div class="section-header">
        <h2>我们的优势</h2>
        <p>专业的团队和先进的技术，为您提供全方位的支持</p>
      </div>
      <div class="advantages-grid">
        <div 
          v-for="(advantage, index) in advantages" 
          :key="index" 
          class="card advantage-card"
        >
          <div class="advantage-icon">{{ advantage.icon }}</div>
          <h3>{{ advantage.title }}</h3>
          <p>{{ advantage.description }}</p>
        </div>
      </div>
    </section>

    <!-- 公司历程 -->
    <section class="timeline-section">
      <div class="section-header">
        <h2>发展历程</h2>
        <p>回顾我们的成长历程和重要里程碑</p>
      </div>
      <div class="timeline">
        <div 
          v-for="(event, index) in timelineEvents" 
          :key="index" 
          class="timeline-item"
          :class="{ 'even': index % 2 === 0 }"
        >
          <div class="timeline-dot"></div>
          <div class="timeline-content">
            <div class="timeline-year">{{ event.year }}</div>
            <h3>{{ event.title }}</h3>
            <p>{{ event.description }}</p>
          </div>
        </div>
      </div>
    </section>

    <!-- 团队介绍 -->
    <section class="team-section">
      <div class="section-header">
        <h2>我们的团队</h2>
        <p>专业、高效、充满活力的团队成员</p>
      </div>
      <div class="team-grid">
        <div 
          v-for="(member, index) in teamMembers" 
          :key="index" 
          class="card team-card"
        >
          <div class="team-avatar">
            <img :src="member.avatar" :alt="member.name">
          </div>
          <h3>{{ member.name }}</h3>
          <p class="position">{{ member.position }}</p>
          <p class="description">{{ member.description }}</p>
        </div>
      </div>
    </section>

    <!-- 企业文化 -->
    <section class="culture-section">
      <div class="card culture-card">
        <div class="section-header">
          <h2>企业文化</h2>
          <p>我们的价值观和行为准则</p>
        </div>
        <div class="culture-values">
          <div class="value-item">
            <h3>客户第一</h3>
            <p>始终将客户需求放在首位，提供优质服务</p>
          </div>
          <div class="value-item">
            <h3>持续创新</h3>
            <p>不断探索新技术，寻求更好的解决方案</p>
          </div>
          <div class="value-item">
            <h3>团队协作</h3>
            <p>鼓励团队合作，共同成长和进步</p>
          </div>
          <div class="value-item">
            <h3>诚信正直</h3>
            <p>坚持诚信经营，保持职业操守</p>
          </div>
        </div>
      </div>
    </section>
  </div>
</template>

<style scoped>
.about-page {
  width: 100%;
}

/* 页面标题 */
.page-header {
  text-align: center;
  margin-bottom: 60px;
  padding: 60px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px;
  margin-top: 30px;
}

.page-header h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 15px;
}

.page-header p {
  font-size: 18px;
  opacity: 0.9;
}

/* 公司简介 */
.company-intro {
  margin-bottom: 80px;
}

.intro-card {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.intro-content {
  flex: 1;
  min-width: 300px;
}

.intro-content h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #333;
  position: relative;
  display: inline-block;
}

.intro-content h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

.intro-content p {
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.8;
}

.intro-image {
  flex: 1;
  min-width: 300px;
}

.intro-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 通用标题样式 */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

.section-header p {
  font-size: 16px;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* 优势卡片 */
.advantages-section {
  margin-bottom: 80px;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.advantage-card {
  text-align: center;
  padding: 30px;
}

.advantage-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.advantage-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
}

.advantage-card p {
  color: #666;
  font-size: 16px;
}

/* 时间线 */
.timeline-section {
  margin-bottom: 80px;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #667eea, #764ba2);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  display: flex;
}

.timeline-item:nth-child(odd) {
  justify-content: flex-start;
}

.timeline-item:nth-child(even) {
  justify-content: flex-end;
}

.timeline-dot {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: 4px solid white;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
  z-index: 2;
}

.timeline-content {
  width: calc(50% - 30px);
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.timeline-year {
  font-size: 14px;
  font-weight: 600;
  color: #667eea;
  margin-bottom: 8px;
}

.timeline-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.timeline-content p {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
}

/* 团队介绍 */
.team-section {
  margin-bottom: 80px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.team-card {
  text-align: center;
  padding: 30px;
  transition: transform 0.3s ease;
}

.team-card:hover {
  transform: translateY(-10px);
}

.team-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 5px solid rgba(102, 126, 234, 0.2);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.team-card:hover .team-avatar img {
  transform: scale(1.1);
}

.team-card h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.position {
  font-size: 14px;
  font-weight: 600;
  color: #667eea;
  margin-bottom: 10px;
}

.description {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
}

/* 企业文化 */
.culture-section {
  margin-bottom: 60px;
}

.culture-card {
  padding: 40px;
}

.culture-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.value-item h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
}

.value-item p {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .page-header {
    padding: 40px 0;
  }
  
  .page-header h1 {
    font-size: 36px;
  }
  
  .intro-card,
  .intro-content,
  .intro-image {
    width: 100%;
  }
  
  .intro-content h2,
  .section-header h2 {
    font-size: 28px;
  }
  
  .timeline::before {
    left: 30px;
  }
  
  .timeline-dot {
    left: 30px;
  }
  
  .timeline-item {
    justify-content: flex-start !important;
  }
  
  .timeline-content {
    width: calc(100% - 80px);
    margin-left: 50px;
  }
  
  .culture-values {
    grid-template-columns: 1fr;
  }
}
</style>
